home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / VISUALBA / MSLOT10.ZIP / SAMPLE.ZIP / MSSAMPLE.FRM next >
Text File  |  1994-01-02  |  6KB  |  198 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    Caption         =   "Form1"
  4.    ClientHeight    =   2670
  5.    ClientLeft      =   2205
  6.    ClientTop       =   1845
  7.    ClientWidth     =   6150
  8.    Height          =   3075
  9.    Left            =   2145
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   2670
  12.    ScaleWidth      =   6150
  13.    Top             =   1500
  14.    Width           =   6270
  15.    Begin Frame Frame1 
  16.       Caption         =   "Peek "
  17.       Height          =   1575
  18.       Left            =   3540
  19.       TabIndex        =   10
  20.       Top             =   435
  21.       Width           =   2430
  22.       Begin Label Label8 
  23.          Caption         =   "NextPriority:"
  24.          Height          =   270
  25.          Left            =   120
  26.          TabIndex        =   6
  27.          Top             =   1050
  28.          Width           =   1035
  29.       End
  30.       Begin Label Label7 
  31.          Caption         =   "NextSize:"
  32.          Height          =   180
  33.          Left            =   135
  34.          TabIndex        =   7
  35.          Top             =   720
  36.          Width           =   840
  37.       End
  38.       Begin Label Label6 
  39.          Caption         =   "Message:"
  40.          Height          =   210
  41.          Left            =   135
  42.          TabIndex        =   14
  43.          Top             =   405
  44.          Width           =   855
  45.       End
  46.       Begin Label Label2 
  47.          Caption         =   "Label2"
  48.          Height          =   240
  49.          Left            =   1260
  50.          TabIndex        =   13
  51.          Top             =   720
  52.          Width           =   1000
  53.       End
  54.       Begin Label Label3 
  55.          Caption         =   "Label3"
  56.          Height          =   240
  57.          Left            =   1260
  58.          TabIndex        =   12
  59.          Top             =   1065
  60.          Width           =   1000
  61.       End
  62.       Begin Label Label4 
  63.          Caption         =   "Label4"
  64.          Height          =   240
  65.          Left            =   1260
  66.          TabIndex        =   11
  67.          Top             =   405
  68.          Width           =   1000
  69.       End
  70.    End
  71.    Begin Timer Timer1 
  72.       Enabled         =   0   'False
  73.       Interval        =   100
  74.       Left            =   2880
  75.       Top             =   1440
  76.    End
  77.    Begin TextBox Text2 
  78.       Height          =   345
  79.       Left            =   120
  80.       TabIndex        =   5
  81.       Text            =   "\mailslot\atest"
  82.       Top             =   480
  83.       Width           =   2535
  84.    End
  85.    Begin CommandButton Command4 
  86.       Caption         =   "Read"
  87.       Height          =   420
  88.       Left            =   1440
  89.       TabIndex        =   4
  90.       Top             =   2040
  91.       Width           =   1215
  92.    End
  93.    Begin CommandButton Command3 
  94.       Caption         =   "Write"
  95.       Enabled         =   0   'False
  96.       Height          =   420
  97.       Left            =   120
  98.       TabIndex        =   2
  99.       Top             =   2040
  100.       Width           =   1215
  101.    End
  102.    Begin CommandButton Command2 
  103.       Caption         =   "Delete"
  104.       Height          =   420
  105.       Left            =   1440
  106.       TabIndex        =   1
  107.       Top             =   960
  108.       Width           =   1215
  109.    End
  110.    Begin VBMailslots Mailslot1 
  111.       Action          =   0
  112.       Left            =   2880
  113.       MailslotName    =   "\mailslot\atest"
  114.       MailslotSize    =   1024
  115.       Message         =   ""
  116.       MessageSize     =   256
  117.       NextPriority    =   0
  118.       NextSize        =   0
  119.       Priority        =   0
  120.       Timeout         =   2005
  121.       Top             =   720
  122.    End
  123.    Begin CommandButton Command1 
  124.       Caption         =   "Make"
  125.       Height          =   420
  126.       Left            =   120
  127.       TabIndex        =   0
  128.       Top             =   960
  129.       Width           =   1215
  130.    End
  131.    Begin Label Label9 
  132.       Caption         =   "Mailslot Name:"
  133.       Height          =   225
  134.       Left            =   120
  135.       TabIndex        =   8
  136.       Top             =   240
  137.       Width           =   1560
  138.    End
  139.    Begin Label Label5 
  140.       Caption         =   "1"
  141.       Height          =   315
  142.       Left            =   120
  143.       TabIndex        =   9
  144.       Top             =   1560
  145.       Width           =   915
  146.    End
  147.    Begin Label Label1 
  148.       Height          =   360
  149.       Left            =   1440
  150.       TabIndex        =   3
  151.       Top             =   1560
  152.       Width           =   1050
  153.    End
  154. End
  155.  
  156. Sub Command1_Click ()
  157.     Mailslot1.MailslotName = Text2.Text
  158.     Mailslot1.Action = 1
  159.     Command3.Enabled = True
  160.     Timer1.Enabled = True
  161. End Sub
  162.  
  163. Sub Command2_Click ()
  164.     Timer1.Enabled = False
  165.     Mailslot1.Message = Label5.Caption
  166.     Mailslot1.Action = 2
  167.     Command3.Enabled = False
  168. End Sub
  169.  
  170. Sub Command3_Click ()
  171.     Mailslot1.MailslotName = Text2.Text
  172.     Mailslot1.Message = Label5.Caption
  173.     Mailslot1.Action = 3
  174.     Label5.Caption = Str(Val(Label5.Caption) + 1)
  175. End Sub
  176.  
  177. Sub Command4_Click ()
  178.     Mailslot1.Message = ""
  179.     Mailslot1.Action = 4
  180.     Label1.Caption = Mailslot1.Message
  181. End Sub
  182.  
  183. Sub Command5_Click ()
  184.     Mailslot1.Message = ""
  185.     Mailslot1.Action = 5
  186.     Label4.Caption = Mailslot1.Message
  187.     Label2.Caption = Str(Mailslot1.NextSize)
  188.     Label3.Caption = Str(Mailslot1.NextPriority)
  189. End Sub
  190.  
  191. Sub Timer1_Timer ()
  192.     Mailslot1.Action = 5
  193.     Label4.Caption = Mailslot1.Message
  194.     Label2.Caption = Str(Mailslot1.NextSize)
  195.     Label3.Caption = Str(Mailslot1.NextPriority)
  196. End Sub
  197.  
  198.